

import { Link } from 'react-router-dom'
import React, { Component } from 'react';
import './home.css';

class Home extends Component {
  // constructor(props) {
  //   super(props);

  //   this.state = { isLogin: false };
  // }

  logOut = () => {
    localStorage.clear('token');
    localStorage.clear('userInfo');
  }

  render() {
    return (
      <div className="full-page home-bg">
        <div className="home-select">
          <ul>
            <li><Link className="home-company-title" to="/company">公司介绍<br /><span className='span1'>Company introduction</span></Link></li>
            <li><Link className="home-project-title" to="/projectHome">项目介绍<br /><span className='span1'>Project introduction</span></Link></li>
            <li><Link className="home-loginout" to="/" onClick={this.logOut}>注销<br /><span className='span1'>logout</span></Link></li>
          </ul>
        </div>
      </div>
    )

  }
}

export default Home;
